package cn.tansanqinger.service.comment;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Service;

import cn.tansanqinger.pojo.Commenttopic;
import cn.tansanqinger.pojo.Commentusertopic;
import cn.tansanqinger.pojo.User;
import cn.tansanqinger.util.PageData;

@Service
public interface ICommentTopicService {
	
	//查询用户评论的数据
	public List<Commenttopic> selectUserAll(HttpServletRequest request);
	
	//查询用户评论的数据条数
	public int selectUserAllNumber(HttpServletRequest request);

	//查询信息
	public List<Commenttopic> selectCommentMessage(User user,int page, int tid);
	
	//第一层数据量
	public int selectCountOneTiter(HttpServletRequest request);
	
	//获取纯二级信息
	public List<Commenttopic> selectCommentTwoTiterMessage(HttpServletRequest request);
	
	//第二层数量
	public int selectCountTwoTiter(HttpServletRequest request);
	
	//保存信息
	public PageData add(HttpServletRequest request);
	
	//回复评论
	public PageData replyComment(HttpServletRequest request);
	
	//点赞
	public PageData praiseSumbit(HttpServletRequest request);
	
	//踩
	public PageData treadSumbit(HttpServletRequest request);
	
	//删除信息
	public PageData delete(String id);
	
	//查看回复用户评论信息
	public List<Commenttopic> replyToComment(HttpServletRequest request);
	
	//回复用户评论信息总条数
	public int replyToCommentCountAll(HttpServletRequest request);
	
	//回复用户评论信息未查看条数
	public int replyToCommentCountIsSelect(HttpServletRequest request);
	
	//查询评论中被点赞的语句
	public List<Commentusertopic> praiseComment(HttpServletRequest request);
	
	//查看用户被点赞未查看条数
	public int praiseCommentCountIsSelect(HttpServletRequest request);
	
	//查看总条数
	public int praiseCountAll(HttpServletRequest request);
	
	
	
}
